<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
	<title>Home</title>
	
	<link type="text/css" rel="stylesheet" href="<c:url value="/resources/main.css" />">
	<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>

	
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
	
	<script type="text/javascript">
		$(document).ready(function(){
		});
	</script>
	
</head>
<body>

	<div class="box">
		<form:form method="post" enctype="multipart/form-data">
			<input type="file" name="file" ><input type="submit" value="Submit" class="button" />
		</form:form>
	</div>

	<br/>

	<div class="box">
		<table>
			<c:forEach items="${aircrafts}" var="aircraft" varStatus="item">
				<tr>
					<td>${item.count}</td>
					<td>${aircraft.mark}</td>
					<td>${aircraft.manufacturer}</td>
					<td>${aircraft.model}</td>
					<td>${aircraft.state}</td>
					<td>${aircraft.operatorName}</td>
					<td>${aircraft.serialNumber}</td>
					<td><a href="<c:url value='/aircraft/delete/${aircraft.mark}' />">Delete</a></td>
				</tr>
			</c:forEach>
		</table>
	</div>		

</body>
</html>